package model

import (
	"time"
)

type PurchaseTypesFillAble struct {
	TypeName string `json:"type_name" gorm:"comment:分类名"`
}

// mysql--noused
func (PurchaseTypesMysql) TableName() string {
	return "purchase_types"
}

func (PurchaseTypesMysql) DbType() string {
	return "mongodb"
}

// mysql--noused
type PurchaseTypesMysql struct {
	TypeId    uint      `json:"id" gorm:"primarykey;comment:自增ID"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	PurchaseTypesFillAble
}


func (PurchaseTypesMongo) DbType() string {
	return "mongodb"
}

//mongo -- inuse
func (PurchaseTypesMongo) TableName() string {
	return "purchase_types"
}

//mongo -- inuse
type PurchaseTypesMongo struct {
	TypeId    uint   `json:"id" bson:"type_id"`
	TypeName  string `json:"type_name" bson:"type_name"`
	CreatedAt time.Time `json:"created_at" bson:"created_at"`
	UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
}
